<?php
namespace BP\Sys;

use BP\En\EntityMyPK;

require_once("BP/En/Map.php");
class ExtContral extends EntityMyPK {
	public function getFK_MapData () 
	{
		return $this->GetValStrByKey(MapAttrAttr::$FK_MapData);
	}
	public function setFK_MapData ($value) // [String value]
	{
		$this->SetValByKey(MapAttrAttr::$FK_MapData, $value);
	}
	public function getKeyOfEn () 
	{
		return $this->GetValStrByKey(MapAttrAttr::$KeyOfEn);
	}
	public function setKeyOfEn ($value) // [String value]
	{
		$this->SetValByKey(MapAttrAttr::$KeyOfEn, $value);
	}
	public function getUIContralType () 
	{
		return $UIContralType->forValue($this->GetValIntByKey(MapAttrAttr::$UIContralType));
	}
	public function setUIContralType ($value) // [UIContralType value]
	{
		$this->SetValByKey(MapAttrAttr::$UIContralType, $value->getValue());
	}
	public function getAthRefObj () 
	{
		return $this->GetParaString("AthRefObj");
	}
	public function setAthRefObj ($value) // [String value]
	{
		$this->SetPara("AthRefObj", $value);
	}
	public function getAthShowModel () 
	{
		return AthShowModel->forValue($this->GetParaInt("AthShowModel"));
	}
	public function setAthShowModel ($value) // [AthShowModel value]
	{
		$this->SetPara("AthShowModel", $value->getValue());
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String_String ($fk_mapdata, $keyofEn) // [String fk_mapdata, String keyofEn]
	{
		$me = new self();
		$me->setMyPK((($fk_mapdata . "_") . $keyofEn));
		$me->Retrieve();
		return $me;
	}
	public static function constructor__String ($mypk) // [String mypk]
	{
		$me = new self();
		$me->setMyPK($mypk);
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_MapAttr", "扩展控件");
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetEnType($EnType->Sys);
		$map->AddMyPK();
		$map->AddTBString(MapAttrAttr::$FK_MapData, NULL, "实体标识",  TRUE ,  TRUE , 1, 100, 20);
		$map->AddTBString(MapAttrAttr::$KeyOfEn, NULL, "属�??",  TRUE ,  TRUE , 1, 200, 20);
		$map->AddTBString(MapAttrAttr::$Name, NULL, "描述",  TRUE ,  FALSE , 0, 200, 20);
		$map->AddTBString(MapAttrAttr::$DefVal, NULL, "默认�?",  FALSE ,  FALSE , 0, 4000, 20);
		$map->AddTBInt(MapAttrAttr::$UIContralType, 0, "控件",  TRUE ,  FALSE );
		$map->AddTBInt(MapAttrAttr::$MyDataType, 0, "数据类型",  TRUE ,  FALSE );
		$map->AddDDLSysEnum(MapAttrAttr::$LGType, 0, "逻辑类型",  TRUE ,  FALSE , MapAttrAttr::$LGType, "@0=普�?�@1=枚举@2=外键@3=打开系统页面");
		$map->AddTBFloat(MapAttrAttr::$UIWidth, 100, "宽度",  TRUE ,  FALSE );
		$map->AddTBFloat(MapAttrAttr::$UIHeight, 23, "高度",  TRUE ,  FALSE );
		$map->AddTBInt(MapAttrAttr::$MinLen, 0, "�?小长�?",  TRUE ,  FALSE );
		$map->AddTBInt(MapAttrAttr::$MaxLen, 300, "�?大长�?",  TRUE ,  FALSE );
		$map->AddTBString(MapAttrAttr::$UIBindKey, NULL, "绑定的信�?",  TRUE ,  FALSE , 0, 100, 20);
		$map->AddTBString(MapAttrAttr::$UIRefKey, NULL, "绑定的Key",  TRUE ,  FALSE , 0, 30, 20);
		$map->AddTBString(MapAttrAttr::$UIRefKeyText, NULL, "绑定的Text",  TRUE ,  FALSE , 0, 30, 20);
		$map->AddBoolean(MapAttrAttr::$UIVisible,  TRUE , "是否可见",  TRUE ,  TRUE );
		$map->AddBoolean(MapAttrAttr::$UIIsEnable,  TRUE , "是否启用",  TRUE ,  TRUE );
		$map->AddBoolean(MapAttrAttr::$UIIsLine,  FALSE , "是否单独栏显�?",  TRUE ,  TRUE );
		$map->AddBoolean(MapAttrAttr::$UIIsInput,  FALSE , "是否必填字段",  TRUE ,  TRUE );
		$map->AddTBFloat(MapAttrAttr::$X, 5, "X",  TRUE ,  FALSE );
		$map->AddTBFloat(MapAttrAttr::$Y, 5, "Y",  FALSE ,  FALSE );
		$map->AddTBString(MapAttrAttr::$Tag, NULL, "标识（存放临时数据）",  TRUE ,  FALSE , 0, 100, 20);
		$map->AddTBInt(MapAttrAttr::$EditType, 0, "编辑类型",  TRUE ,  FALSE );
		$map->AddTBString(MapAttrAttr::$ColSpan, "1", "单元格数�?",  TRUE ,  FALSE , 0, 3, 3);
		$map->AddTBInt(MapAttrAttr::$Idx, 0, "序号",  TRUE ,  FALSE );
		$map->AddTBString(MapAttrAttr::$GUID, NULL, "GUID",  TRUE ,  FALSE , 0, 128, 20);
		$map->AddTBAtParas(4000);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
